<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.dts.listener.Consumer" %>
<%@ page isELIgnored="false" %>

<html>
<head>
    <title>JSP</title>

</head>

<body>
<%
    //将javabean对象绑定到Session中
    Consumer consumer = new Consumer();
    consumer.setUserId("admin");
    session.setAttribute("consumer", consumer);
    session.invalidate();
%>
</body>


</html>